<?php $this->pageTitle = 'Reset your password'; ?>

<h2>Reset your password for <?=$form->username?></h2><hr />

<?$form->scenario='resetPassword';?>
<div class="gemiauth">
  <?php echo CHtml::statefulForm(array('resetPassword')); ?>

  <?php echo CHtml::activeLabelEx($form,'passwordNew'); ?>
  <?php echo CHtml::activePasswordField($form,'passwordNew',array('maxlength'=>45, 'autocomplete'=>'off')); ?><br />

  <?php echo CHtml::activeLabelEx($form,'passwordNew_repeat'); ?>
  <?php echo CHtml::activePasswordField($form,'passwordNew_repeat',array('maxlength'=>45, 'autocomplete'=>'off')); ?><br />

  <?php if(extension_loaded('gd')): ?>
    <?php echo CHtml::activeLabelEx($form,'&nbsp;'); ?>
    <?php $this->widget('CCaptcha', array('showRefreshButton' => false)); ?><br />

    <?php echo CHtml::activeLabelEx($form,'&nbsp;'); ?>
  Please enter the letters as they are shown in the image above. Letters are not case-sensitive.<br />

    <?php echo CHtml::activeLabelEx($form,'captcha'); ?>
    <?php echo CHtml::activeTextField($form, 'captcha', array('size'=>10, 'value'=>'', 'autocomplete'=>'off')); ?><br />
  <?php endif; ?>

  <?php echo CHtml::activeLabelEx($form,'&nbsp;'); ?>
  <?php echo CHtml::submitButton('Save'); ?><p>&nbsp;</p>

  <?php echo CHtml::errorSummary($form); ?>
</form>
</div>
